<?php

namespace App\Models\System;

use App\Models\BaseModel;
use App\Models\Traits\KfSoftDeletes;
use DateTimeInterface;
use Illuminate\Database\Eloquent\Relations\HasOne;

class SystemNotifyUserModel extends BaseModel
{
    use KfSoftDeletes;

    protected $table = 'system_notify_user';

    protected $fillable = [
        'notifyCenterId',
        'userId',
        'readAt',
        'createdAt',
        'createdByUid',
        'updatedAt',
        'updatedByUid',
        'isDeleted',
    ];

    public function notifyCenterRel() :HasOne
    {
        return $this->hasOne(SystemNotifyCenterModel::class, 'id', 'notifyCenterId');
    }
}
